package com.fuyun.client.utils;

import com.fuyun.rpc.factory.SingletonFactory;
import com.fuyun.rpc.proxy.RpcClientProxy;
import com.fuyun.rpc.transmission.RpcClient;
import com.fuyun.rpc.transmission.socket.client.SocketRpcClient;

/**
 * @Author fuyun。
 * @Date 2025/8/21 17:04。
 * @Description: TODO。
 **/

public class ProxyUtils {
    private static final RpcClient rpcClient = SingletonFactory.getInstance(SocketRpcClient.class);
    private static final RpcClientProxy proxy = new RpcClientProxy(rpcClient);

    public static <T> T getProxy(Class<T> clazz) {
        return proxy.getProxy(clazz);

    }
}
